import request from "@/utils/request";

export function getResourceTypeEntityListByName(resourceTypeName) {
  return request({
    url:
      "/resourcevisualization/resource/getResourceTypeEntityListByName/" +
      resourceTypeName,
    method: "get",
  });
}

export function getResourceEntityPageListByName(data, resourceTypeName) {
  return request({
    url:
      "/resourcevisualization/resource/getResourceEntityPageListByName/" +
      resourceTypeName,
    method: "post",
    data,
  });
}
export function queryResourceEntityPageList(data) {
  return request({
    url: "/resourcevisualization/resource/queryResourceEntityPageList",
    method: "post",
    data,
  });
}

export function getMayApplyEntityList(data) {
  return request({
    url: "/resourcevisualization/resource/getMayApplyEntityList",
    method: "post",
    data,
  });
}

export function getResourceTypeEntityByEntityId(data) {
  return request({
    url:
      "/resourcevisualization/resource/getResourceTypeEntityByEntityId/" + data,
    method: "get",
  });
}

export function queryResourceTypeEntityList(data) {
  return request({
    url: "/resourcevisualization/resource/queryResourceTypeEntityList",
    method: "post",
    data,
  });
}

export function addResourceTypeEntity(data) {
  return request({
    url: "/resourcevisualization/resource/addResourceTypeEntity/",
    method: "post",
    data,
  });
}

export function updateResourceTypeEntityByEntityId(data) {
  return request({
    url: "/resourcevisualization/resource/updateResourceTypeEntityByEntityId/",
    method: "post",
    data,
  });
}

export function updateResourceTypeEntityStatusById(data) {
  return request({
    url: "/resourcevisualization/resource/updateResourceTypeEntityStatusById/",
    method: "post",
    data,
  });
}

export function markDeleteResourceTypeEntityByEntityId(entityId) {
  return request({
    url:
      "/resourcevisualization/resource/markDeleteResourceTypeEntityByEntityId/?entityId=" +
      entityId,
    method: "post",
  });
}
